#!/usr/bin/env python
#Self Replicating Software test
import random
import file_con
import time

def gen_key(run = 1):
	incr = 0
	print "Running ", run, " Times, this may take a long time"
	time.sleep(4)
	while incr != run:
		
		shuffle = random.randint(1,100)
		
		
		num1 = [0,22,76,32,66,23,99,1,2,6,85]
		
		
		num2 = [0,92,10,11,30,50,33,56,74]
		
		while shuffle != 12312:
			
			shuffle = random.randint(1,100000)
			
			multi1 = random.randint(900, 405032)
			
			#print multi1, "< MULTI"
			
			#print "\n"
			
			#print shuffle, "< SHUFFLE"
			

			if shuffle == 12312:
				print "done, runs remaining =", run - incr - 1
		
		ran1 = random.randint(1,4)
		
		ran2 = random.randint(1,4)
		
		incr += 1
		
		com = 0
		com += num1[ran1] + num2[ran2] * multi1 + random.randint(0, 9000000) * random.randint(500, 4000)
		com += com
		
		print com


def insert_into_code():
	print "how many times should it run the key algorithim?higher takes longer: "
	howmany = input()
	keys = gen_key(howmany)
	print keys
	
	#insert them into the file as a def statement which does nothing but have a variable with the key in it


def main():
	insert_into_code()
	

	
	return 0

if __name__ == '__main__': main()
